﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using XhPaper;
using XhPaper.基本图形;
using XhPaper.功能实现;

namespace test
{
    public partial class Form1 : Form
    {
        public MyCadDll.MyCadDllClass myCad;
        public Form1()
        {
            InitializeComponent();
            myCad = new MyCadDll.MyCadDllClass();
           
        }

        private void button1_Click(object sender, EventArgs e)
        {
            myCad.StartCad();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            MyTuZhi tuzhi = new MyTuZhi(0, 0, null);
            //MyJdq jdq = new MyJdq(10, 130, tuzhi);
            //MyJdq jdq1 = new MyJdq(60, 130, tuzhi);
            //jdq.MyDraw(myCad);
            //jdq1.MyDraw(myCad);
            //MyJkb jkb = new MyJkb(110, 130, tuzhi);
            //jkb.MyDraw(myCad);

            //MyTableJdqMini jdqmini = new MyTableJdqMini(10, 130, tuzhi);
            //jdqmini.MyDraw(myCad);

            //MyTableJkbMini jkbmini = new MyTableJkbMini(10, 130, tuzhi);
            //jkbmini.MyDraw(myCad);

            //MyDy dy = new MyDy(10, 130, tuzhi);
            //dy.MyDraw(myCad);
            Dyhx dyhx = new Dyhx();
            dyhx.MyDraw(myCad);
           
        }

        private void button3_Click(object sender, EventArgs e)
        {
            //myCad.GetSelectSet();
            DataHx dataHx = new DataHx();
            dataHx.MyDraw(myCad);
        }
    }
}
